import request from '@/utils/request';

export async function getPayrollList(params = {}) {
  return request('/Amaidan-Distribution-Web/payments/getAllPaymentsInfoList', {
    method: 'POST',
    data: params,
  });
}

export async function fetchWithdrawLog(params = {}) {
  return request('/Amaidan-Distribution-Web/payments/withdrawLog', {
    method: 'POST',
    data: params,
  });
}

export async function fetchWithdrawInfo(params = {}) {
  return request('/Amaidan-Users-Web/user/userManage/getWithdrawInfo', {
    method: 'POST',
    data: params,
  });
}

export async function fetchWithdrawSum(params = {}) {
  return request('/Amaidan-Users-Web/user/userManage/getWithdrawSum', {
    method: 'POST',
    data: params,
  });
}

